<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="PhotobucketService,com.photobucket.webapi.service.PhotobucketService,API_ROOT,API_USER_LOGIN_URL,channels,specificServer,maxConcurrentRequests,running,userLoginURL,getEncodedURL,getInstance,makeRequest,ping,setAPIRoot,setConsumer,signRequest" name="keywords">
<title>com.photobucket.webapi.service.PhotobucketService</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'PhotobucketService - Photobucket Open API AS3 Client Library';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Photobucket Open API AS3 Client Library Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?com/photobucket/webapi/service/PhotobucketService.html&amp;com/photobucket/webapi/service/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;PhotobucketService</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class PhotobucketService"); titleBar_setSubNav(true,true,false,false,true,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.photobucket.webapi.service</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class PhotobucketService</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">PhotobucketService <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../../images/inherit-arrow.gif"> <a href="../oauth/OAuthBaseService.html">OAuthBaseService</a> <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
</table>
<p></p>
  Implmentation of the Photobucket Open API.  The PhotobucketService class handles the making of requests to the
  Photobucket Open API and will execute the requests via internal channels for both URL and FILE requests. 
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<div class="showHideLinks">
<div class="hideInheritedProperty" id="hideInheritedProperty">
<a onclick="javascript:setInheritedVisible(false,'Property');" href="#propertySummary" class="showHideLink"><img src="../../../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Properties</a>
</div>
<div class="showInheritedProperty" id="showInheritedProperty">
<a onclick="javascript:setInheritedVisible(true,'Property');" href="#propertySummary" class="showHideLink"><img src="../../../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Properties</a>
</div>
</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#API_ROOT">API_ROOT</a> : String = "http://api.photobucket.com"<div class="summaryTableDescription">[static]
   The root URL of the API 
   </div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#maxConcurrentRequests">maxConcurrentRequests</a> : int<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="../oauth/OAuthBaseService.html#oauth_consumer_key">oauth_consumer_key</a> : String<div class="summaryTableDescription">
   Consumer Key:  A value used by the Consumer to identify itself to the Service Provider.</div>
</td><td class="summaryTableOwnerCol"><a href="../oauth/OAuthBaseService.html">OAuthBaseService</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="../oauth/OAuthBaseService.html#oauth_consumer_secret">oauth_consumer_secret</a> : String<div class="summaryTableDescription">
   Consumer Secret: A secret used by the Consumer to establish ownership of the Consumer Key.</div>
</td><td class="summaryTableOwnerCol"><a href="../oauth/OAuthBaseService.html">OAuthBaseService</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="../oauth/OAuthBaseService.html#oauth_token">oauth_token</a> : String = ""<div class="summaryTableDescription"> 
   Acess Token/Reuest Token:
   
   Access Token: A value used by the Consumer to gain access to the Protected Resources on behalf of the User, instead of using the User’s Service Provider credentials.</div>
</td><td class="summaryTableOwnerCol"><a href="../oauth/OAuthBaseService.html">OAuthBaseService</a></td>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="../oauth/OAuthBaseService.html#oauth_token_secret">oauth_token_secret</a> : String = ""<div class="summaryTableDescription">
    Token Secret: A secret used by the Consumer to establish ownership of a given Token.</div>
</td><td class="summaryTableOwnerCol"><a href="../oauth/OAuthBaseService.html">OAuthBaseService</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#running">running</a> : Boolean<div class="summaryTableDescription">[read-only]
   Returns if the service is still processing requests
   </div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#specificServer">specificServer</a> : Boolean = false<div class="summaryTableDescription">
    Channelset object that handels the actual making of requests
   </div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#userLoginURL">userLoginURL</a> : String<div class="summaryTableDescription">[read-only]
   Returns the URL we should send the user's browser to authenticate once we have requested a Request token from the API.</div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
</table>
</div>
<a name="protectedPropertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Properties</div>
<table id="summaryTableProtectedProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#channels">channels</a> : <a href="../service/PhotobucketChannelSet.html">PhotobucketChannelSet</a>
<div class="summaryTableDescription">
    Channelset object that handels the actual making of requests
   </div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<div class="showHideLinks">
<div class="hideInheritedMethod" id="hideInheritedMethod">
<a onclick="javascript:setInheritedVisible(false,'Method');" href="#methodSummary" class="showHideLink"><img src="../../../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Methods</a>
</div>
<div class="showInheritedMethod" id="showInheritedMethod">
<a onclick="javascript:setInheritedVisible(true,'Method');" href="#methodSummary" class="showHideLink"><img src="../../../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Methods</a>
</div>
</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#PhotobucketService()">PhotobucketService</a>(no:PBRestriction)</div>
<div class="summaryTableDescription">
   Constructor
   The PhotobucketService is implmeented as a singleton and should not be called directly with new.</div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="../oauth/OAuthBaseService.html#createUID()">createUID</a>():String</div>
<div class="summaryTableDescription">[static]
   Returns a unique id to use a a noonce.</div>
</td><td class="summaryTableOwnerCol"><a href="../oauth/OAuthBaseService.html">OAuthBaseService</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getInstance()">getInstance</a>():<a href="../service/PhotobucketService.html">PhotobucketService</a>
</div>
<div class="summaryTableDescription">[static]
   Return an instance of the PhotobucketService 
   </div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#makeRequest()">makeRequest</a>(request:<a href="../oauth/IOAuthRequest.html">IOAuthRequest</a>, priority:int = 2):void</div>
<div class="summaryTableDescription">
   Makes a requests againist the API and can prioritize certian requests either a HIGH, NORMAL and LOW (1,2,3) so that
   API's calls indirect responce to user gestures can get priority and provide a better use experience.</div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#ping()">ping</a>(onResult:Function, onFault:Function, server:String = null):void</div>
<div class="summaryTableDescription">
   Pings the API to see if it is available.</div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#setAPIRoot()">setAPIRoot</a>(hostname:String):void</div>
<div class="summaryTableDescription">
    Override the API root
   </div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#setConsumer()">setConsumer</a>(consumer_key:String, consumer_secret:String):void</div>
<div class="summaryTableDescription">
   Convinence Method to set the Consumer information 
   </div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
</table>
</div>
<a name="eventSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Events</div>
<table id="summaryTableEvent" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Event</th><th>Summary</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:exception">exception</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Exception
   
  Dispatched when the Photobucket Service has encountered an errror while processing a request 
  </td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:serviceComplete">serviceComplete</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Service Complete
   
  Dispatched when the Photobucket Service has no further requests to process 
  </td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:serviceStart">serviceStart</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Service Start
   
  Dispatched when the Photobucket Service has begun to process requests
  </td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#API_USER_LOGIN_URL">API_USER_LOGIN_URL</a> : String = "http://photobucket.com/apilogin/login"<div class="summaryTableDescription">[static]
   The root URL of the API 
   </div>
</td><td class="summaryTableOwnerCol">PhotobucketService</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="API_ROOT"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">API_ROOT</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>public static var API_ROOT:String = "http://api.photobucket.com"</code><p>
   The root URL of the API 
   </p></div>
<a name="channels"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">channels</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var channels:<a href="../service/PhotobucketChannelSet.html">PhotobucketChannelSet</a></code><p>
    Channelset object that handels the actual making of requests
   </p></div>
<a name="maxConcurrentRequests"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">maxConcurrentRequests</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>maxConcurrentRequests:int</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get maxConcurrentRequests():int</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set maxConcurrentRequests(value:int):void</code>
<br>
</div>
<a name="running"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">running</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>running:Boolean</code>&nbsp;&nbsp;[read-only]<p>
   Returns if the service is still processing requests
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get running():Boolean</code>
<br>
</div>
<a name="specificServer"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">specificServer</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var specificServer:Boolean = false</code><p>
    Channelset object that handels the actual making of requests
   </p></div>
<a name="userLoginURL"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">userLoginURL</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>userLoginURL:String</code>&nbsp;&nbsp;[read-only]<p>
   Returns the URL we should send the user's browser to authenticate once we have requested a Request token from the API. 
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get userLoginURL():String</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="PhotobucketService()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">PhotobucketService</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function PhotobucketService(no:PBRestriction)</code><p>
   Constructor
   The PhotobucketService is implmeented as a singleton and should not be called directly with new.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">no</span>:PBRestriction</code></td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="getEncodedURL()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getEncodedURL</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>oauth_internal override function getEncodedURL(url:String):String</code><p>
   Overides the OAuth base string creation so that the servername is always api.photobucket.com instead of 
   actual url of the reuest.  This is done because redirections from silo to silo may occur for retriving some data. 
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">url</span>:String</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>String</code></td>
</tr>
</table>
</div>
<a name="getInstance()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getInstance</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getInstance():<a href="../service/PhotobucketService.html">PhotobucketService</a></code><p>
   Return an instance of the PhotobucketService 
   </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../service/PhotobucketService.html">PhotobucketService</a></code></td>
</tr>
</table>
</div>
<a name="makeRequest()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">makeRequest</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function makeRequest(request:<a href="../oauth/IOAuthRequest.html">IOAuthRequest</a>, priority:int = 2):void</code><p>
   Makes a requests againist the API and can prioritize certian requests either a HIGH, NORMAL and LOW (1,2,3) so that
   API's calls indirect responce to user gestures can get priority and provide a better use experience.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">request</span>:<a href="../oauth/IOAuthRequest.html">IOAuthRequest</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">priority</span>:int</code> (default = <code>2</code>)<code></code></td>
</tr>
</table>
</div>
<a name="ping()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ping</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function ping(onResult:Function, onFault:Function, server:String = null):void</code><p>
   Pings the API to see if it is available.  It will hit the root api server if not specified.  All failures and results will be sent to the specefied
   IResponder.
      </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">onResult</span>:Function</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">onFault</span>:Function</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">server</span>:String</code> (default = <code>null</code>)<code></code></td>
</tr>
</table>
</div>
<a name="setAPIRoot()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">setAPIRoot</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function setAPIRoot(hostname:String):void</code><p>
    Override the API root
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">hostname</span>:String</code></td>
</tr>
</table>
</div>
<a name="setConsumer()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">setConsumer</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function setConsumer(consumer_key:String, consumer_secret:String):void</code><p>
   Convinence Method to set the Consumer information 
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">consumer_key</span>:String</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">consumer_secret</span>:String</code></td>
</tr>
</table>
</div>
<a name="signRequest()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">signRequest</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>oauth_internal override function signRequest(request:<a href="../oauth/IOAuthRequest.html">IOAuthRequest</a>):void</code><p>
   The photobucet API allows us to specify the format of the responce and override the HTTP method so that the default behavior of
   the actionscript components do not get in the way too much and we can avoid relying on a proxy.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">request</span>:<a href="../oauth/IOAuthRequest.html">IOAuthRequest</a></code></td>
</tr>
</table>
</div>
<div class="detailSectionHeader">Event detail</div>
<a name="event:exception"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">exception</td><td class="detailHeaderType">event&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href="../events/PhotobucketServiceExceptionEvent.html"><code>com.photobucket.webapi.events.PhotobucketServiceExceptionEvent</code></a>
<br>
<p></p><p>
  Exception
   
  Dispatched when the Photobucket Service has encountered an errror while processing a request 
  </p></div>
<a name="event:serviceComplete"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">serviceComplete</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href="../events/PhotobucketServiceEvent.html"><code>com.photobucket.webapi.events.PhotobucketServiceEvent</code></a>
<br>
<p></p><p>
  Service Complete
   
  Dispatched when the Photobucket Service has no further requests to process 
  </p></div>
<a name="event:serviceStart"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">serviceStart</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href="../events/PhotobucketServiceEvent.html"><code>com.photobucket.webapi.events.PhotobucketServiceEvent</code></a>
<br>
<p></p><p>
  Service Start
   
  Dispatched when the Photobucket Service has begun to process requests
  </p></div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="API_USER_LOGIN_URL"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">API_USER_LOGIN_URL</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>public static const API_USER_LOGIN_URL:String = "http://photobucket.com/apilogin/login"</code><p>
   The root URL of the API 
   </p></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
